package com.itheima3;

import java.sql.SQLOutput;
import java.util.Scanner;

public class bianli_zifuchuan {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        System.out.println("请输入一个字符");
        String line = sc.nextLine();

        int bigcount = 0;
        int smallcount = 0;
        int numbercount = 0;

        for(int x = 0;x < line.length();x++){
            char ch = line.charAt(x);

            if(ch >= 'A'&&ch <= 'Z')
                bigcount++;
            else if(ch >= 'a'&&ch <='z')
                smallcount++;
            else if(ch>='0'&&ch<='9')
                numbercount++;
        }
        System.out.println(bigcount);
        System.out.println(smallcount);
        System.out.println(numbercount);


    }
}
